import { defineStore } from "pinia";
export const useUserInfoStore = defineStore({
  id: "userInfo",
  state: () => ({
    userInfo: {
      id: 0,
      username: "",
      nickname: "",
      mobile: "",
      gender: 0,
      avatar: "",
      email: "",
      status: 0,
      deptId: 0,
      roleIds: []
    }
  }),
  actions: {
    changeUserInfo(info: any) {
      this.userInfo = { ...info };
    }
  },
  getters: {
    getUserInfo(): any {
      return this.userInfo;
    }
  }
});
